#include<stdio.h>
int main()
{
    int n;
    while(scanf("%d",&n) != EOF)
       if (n%8==2 || n%8==6)
           printf("yes\n");
       else
           printf("no\n");
    return 0;
}

